package cn.jh.common.utils;

import java.math.BigDecimal;

public class CommonConstants {
	/*参数不完整**/
	public static final String ERROR_VERI_CODE = "000002";
	/*参数错误**/
	public static final String ERROR_PARAM  = "000001";

	/**通道错误*/
	public static final String ERROR_PASS_ERROR = "000003";

	/**支付错误*/
	public static final String ERROR_PAY_PASS   = "000004";

	/**密令错误*/
	public static final String ERROR_TOKEN      = "000005";

	/**卡教研失败***/
	public static final String ERROR_CARD_FAILED = "000006";

	/**用户不存在***/
	public static final String ERROR_USER_NOT_EXISTED = "000007";

	/***用户已存在**/
	public static final String ERROR_USER_HAS_REGISTER = "000008";

	/**卡失败***/
	public static final String ERROR_CARD_ERROR = "000009";

	/**支付请求错误*/
	/**金额有误**/
	public static final String ERROR_AMOUNT_ERROR  = "000010";

	public static final String ERRRO_ORDER_HAS_CHECKED = "000011";

	/***用户加入黑名单***/
	public static final String ERROR_USER_BLACK = "000012";

	/**用户未注册***/
	public static final String ERROR_USER_NO_REGISTER = "000013";

	/**提现下单错误*/
	public static final String ERROR_WITHDRAW_ORDER_FAIL  = "000014";

	/**默认卡有误**/
	public static final String ERROR_USER_NO_DEFAULT_CARD = "000015";

	/***提现失败**/
	public static final String ERROR_WITHDRAW_REQ_FAILD  = "000016";

	/***提现余额不足**/
	public static final String ERROR_WITHDRAW_BALANCE_NO_ENOUGH = "000017";

	/***不存在**/
	public static final String ERROR_PAYMENT_NOT_EXIST   = "000019";

	/**该笔订单已经提交*/
	public static final String ERROR_WITHDRAW_ORDER_HASREQ = "000020";

	/**权限不足*/
	public static final String ERROR_USERROLE_ERROR = "000021";

	/**
	 * 畅捷用户绑卡待确定
	 */
	public static final String ERROR_FREE_QUICK_BINK = "000022";

	/**
	 * 畅捷用户绑卡待确定提示信息
	 */
	public static final String ERROR_FREE_QUICK_BINK_MSG = "请输入银联在线支付开通短信验证码！";

	/**
	 * 畅捷用户注册失败
	 */
	public static final String ERROR_FREE_QUICK_LOGIN = "000023";

	/**
	 * 畅捷用户注册失败提示信息
	 */
	public static final String ERROR_FREE_QUICK_LOGIN_MSG = "银联在线支付开通失败，请联系客服！";

	/**
	 * 畅捷绑卡未知错误,或余额不足
	 */
	public static final String ERROR_FREE_QUICK_BINK_ERROR = "000024";

	/**
	 * 未绑定储蓄卡，不可交易
	 */
	public static final String ERROR_BINK_ERROR = "000025";
	/**
	 * 畅捷绑卡未知错误提示信息
	 */
	public static final String ERROR_FREE_QUICK_BINK_ERROR_MSG = "银联在线支付开通异常，请联系客服，确定银行卡信息是否完整！";

	/**签名无效*/
	public static final String ERROR_SIGN_NOVALID = "000018";

	/**成功*/
	public static final String SUCCESS = "000000";

	//畅捷通道返回成功信息
	public static final String FREE_SUCCESS = "200";

	public static final String BINDTASKCARD = "888888";

	/***失败*/
	public static final String FALIED  = "999999";

	/**等待处理**/
	public static final String WAIT_CHECK   = "666666";

	/***秘密密钥**/
	public static final String SECRETKEY = "juhe-20170328";

	/**
	 * 短信API服务密钥
	 */
	public static final String NOTICE = "notice";

	/**
	 * 身份证实名认证密钥
	 */
	public static final String NAME_AUTH = "nameAuth";

	/**
	 * 银行卡类型及真伪查询密钥
	 */
	public static final String BANK_TAG = "bankTag";
	public static final String BANK_TAG_URL = "http://v.juhe.cn/bankcardinfo/query";

	/**
	 * 银行卡四元素校验密钥
	 */
	public static final String BANK_AUTH = "bankAuth";
	public static final String BANK_AUTH_URL = "http://v.juhe.cn/verifybankcard4/query";

	/**
	 * 银行卡类型及归属地密钥
	 */
	public static final String BANK_ASCRIPTION = "ascription";
	public static final String BANK_ASCRIPTION_URL = "http://apis.juhe.cn/bankcardcore/query";

	/**结果**/
	public static final String RESULT = "result";
	/**有效**/
	public static final String STATUS_VALID = "0";
	/**无效***/
	public static final String STATUS_INVALID = "1";
	/***返回码**/
	public static final String RESP_CODE  = "resp_code";
	/***返回描述**/
	public static final String RESP_MESSAGE = "resp_message";
	/**角色权限*/
	public static final String USER_ROLEID = "user_roleid";


	/**品牌类型*/
	/***主品牌**/
	public static final String BRAND_MAIN  = "0";

	/***其他**/
	public static final String BRAND_OTHER = "1";



	/**银行卡的默认状态*/
	/**银行卡默认*/
	public static final String CARD_DEFAULT = "1";
	/**银行卡非默认*/
	public static final String CARD_NOT_DEFAULT  = "0";



	/**充值/支付/代付的订单状态*/
	/***等待回执**/
	public static final String ORDER_READY = "0";
	/**成功**/
	public static final String ORDER_SUCCESS = "1";
	/**取消订单***/
	public static final String ORDER_CANCEL  = "2";


	/**充值/支付/提现/退款的类型标识*/
	/**充值**/
	public static final String ORDER_TYPE_TOPUP 	= "0";
	/**支付购买产品**/
	public static final String ORDER_TYPE_PAY   	= "1";
	/**提现***/
	public static final String ORDER_TYPE_WITHDRAW 	= "2";

	/** 分润 */
	public static final String ORDER_TYPE_REBATE	= "9";



	/**积分类型*/
	/***添加分**/
	public static final String COIN_TYPE_ADD = "0";

	/***减少积分**/
	public static final String COIN_TYPE_SUB = "1";


	/**订单的结算类型*/
	/**工作日结算**/
	public static final String CLEARING_T_0  = "0";
	/**下个工作日结算**/
	public static final String CLEARING_T_1  = "1";
	/***当天结算**/
	public static final String CLEARING_D_0  = "2";
	/**第二天结算**/
	public static final String CLEARING_D_1  = "3";

	/**
	 * 畅捷交易接口地址
	 */
	public static final String BASEURL_PAYMENT = "http://47.107.104.250:8099/rest/v1.0/paybar/pay";

	/**
	 * 畅捷交易查询接口地址
	 */
	public static final String BASEURL_PAYM = "/rest/v1.0/paybar/queryPay";

	/**
	 * 畅捷提现/代还接口地址
	 */
	public static final String BASEURL_WITHDRAW = "http://47.107.104.250:8099/rest/v1.0/paybar/withdrawDeposit";

	/**
	 * 查询商户个人钱包
	 */
	public static final String QUERY_AMOUNT_URL=" http://47.107.104.250:8099/rest/v1.0/paybar/queryMerchantWallet";

	public static final String BASEURL_WITHDRAW_BACK = "/rest/v1.0/paybar/withdrawDeposit";

	public static final String BASEURL_WITHDRAW_CARD = "/v1.0/paymentchannel/freeQuickPay/bindCardCallback";

	public static final String BASEURL_XJF = "http://47.104.158.3:8080";


	/**
	 * 畅捷提现/代还查询接口地址
	 */
	public static final String BASEURL_QUERY_WITHDRAW = "/rest/v1.0/paybar/queryWithdraw";

	//畅捷提现/代还查询接口地址
	public static final String BASEURL = "http://47.107.104.250:8099";


	/**
	 * 畅捷绑定银行卡确认
	 */
	public static final String PENDING = "PENDING";

	public static final String REMITING = "REMITING";

	/**
	 * 成功标识
	 */
	public static final String BASE_SUCCESS = "SUCCESS";

	/**
	 * 畅捷绑定银行卡失败12000159
	 */
	public static final String FAIL = "FAIL";

	// 商户查询绑卡
	public static final String QUERY_BIND_CARD = "/rest/v1.0/paybar/queryBindCard";

	public static final String BASE_URL = "http://apis.miaowpay.com";

	public static final String AGENT_NO = "12000159";

	public static final String AGENT_KEY = "36580420a717492fa57cf03a292387c1";

	public static final String CARD04 = "CHANPAYNEWCARD_04";

	public static final String CARD02 = "CHANPAYNEWCARD2_04";

	public static final String CARD0101 = "CHANPAYNEWCARD_0101";

	public static final String CARD0102 = "CHANPAYNEWCARD_0102";

	public static final String PRIVATE = "PRIVATE";

	public static final String CHANPAYNEWCARD = "CHANPAYNEWCARD";

	public static final String TODAY = "400";//D0

	public static final String T1DAY = "402";//T1

	public static final String TOMORROW = "405";

	public static final String PUBLIC = "PUBLIC";

	public static final String CRAD_TYPE = "PRC_ID";

	public static final String LEMENT_TYPE = "D0";

	// 商户注册接口
	public static final String REGISTER_MERCHANT = "/rest/v1.0/paybar/registMerchant";

	// 商户开通产品接口
	public static final String REGISTER_MERCHANT_PRODUCT = "/rest/v1.0/paybar/registMerchantProduct";

	// 商户查询结算卡信息接口
	public static final String QUERY_MERCHANT_SETTLE = "/rest/v1.0/paybar/queryMerchantSettlementInfo";

	// 商户查询费率信息
	public static final String QUERY_MERCHANT_FEE = "/rest/v1.0/paybar/queryMerchantFeeInfo";

	// 商户修改结算卡信息接口
	public static final String MODIFY_MERCHANT_SETTLE = "/rest/v1.0/paybar/modifyMerchantSettlementInfo";

	// 商户修改产品费率接口
	public static final String MODIFY_MERCHANT_FEE = "/rest/v1.0/paybar/modifyMerchantFeeInfo";

	// 商户绑卡
	public static final String BIND_CARD = "/rest/v1.0/paybar/bindCard";

	// 商户绑卡短信确认
	public static final String CONFIRM_BIND_CARD = "/rest/v1.0/paybar/confirmBindCard";

	// 商户绑卡已绑卡
	public static final String QUERY_BIND_CARDS =  "/rest/v1.0/paybar/queryBankCardList";


	//钱包类型当天
	public static final String  WALLET_TYPE_SAME_DAY = "400";

	//钱包类型隔天
	public static final String  WALLET_TYPE_NEXT_DAY = "402";

	/** 每笔交易金额 <= 300 分润利率为0.006 */
	public static final BigDecimal INTEREST_RATE_ONE = BigDecimal.valueOf(0.006);

	/** 每笔交易金额 > 300 分润利率为0.0022 */
	public static final BigDecimal INTEREST_RATE_TWO = BigDecimal.valueOf(0.0022);

	/** 消费类型 1：台码，2：在线付款 */
	public static final String COMSUMEPTION_TYPE_ONE = "1";
	public static final String COMSUMEPTION_TYPE_TWO = "2";

	/* 0：贷记卡/信用卡，2：借记卡 */
	public static final String CREDIT_CARD = "0";
	public static final String DEBIT_CARD = "2";
	public static final String CREDIT_0 = "CREDIT";
	public static final String DEBIT_2 = "DEBIT";

	/* 代还商旅05 */
	public static final String CHANNEL_TAG_04 = "CHANPAYNEWCARD_04";

	/* 畅捷新无卡101 */
	public static final String CHANNEL_TAG_0101 = "CHANPAYNEWCARD_0101";

	/* 畅捷新无卡102 */
	public static final String CHANNEL_TAG_0102 = "CHANPAYNEWCARD_0102";

	/* 快捷商旅05 */
	public static final String CHANNEL_TAG_05 = "CHANPAYNEWCARD2_04";

	/**
	 * 待支付
	 */
	public static final String UNPAY = "UNPAY";

	/**
	 * 支付中
	 */
	public static final String PROCESS = "PROCESS";

	/**
	 * 支付成功
	 */
	public static final String SUCCESS_TO = "SUCCESS";

	/**
	 * 支付失败
	 */
	public static final String FAILURE = "FAILURE";

	/**
	 * 未知/异常
	 */
	public static final String UNKNOW = "UNKNOW";

	/* 系统管理 */
	public static final String ROLE_CODE_01 = "r01";
	/* 贴牌商 */
	public static final String ROLE_CODE_02 = "r02";
	/* 代理商 */
	public static final String ROLE_CODE_03 = "r03";
	/* 审核员 */
	public static final String ROLE_CODE_04 = "r04";
	/* 普通用户 */
	public static final String ROLE_CODE_05 = "r05";
	/* 台卡代理 */
	public static final String ROLE_CODE_06 = "r06";

	//0:待交易,1：成功，2：失败，3：异常,4：交易中；
	/* 待确认、待支付 */
	public static final String PAYMENT_STATUS_UNPAY = "0";
	/* 支付成功 */
	public static final String PAYMENT_STATUS_SUCCESS = "1";
	/* 支付失败 */
	public static final String PAYMENT_STATUS_FAILURE = "2";
	/* 未知 */
	public static final String PAYMENT_STATUS_UNKNOW = "3";
	/* 畅捷交易支付状态 支付中 */
	public static final String PAYMENT_STATUS_PROCESS = "4";

	/* 新增通道 */
	public static final String CHANNEL_ADD = "0";
	/* 修改通道 */
	public static final String CHANNEL_MODIFY = "1";
	/* 开启通道 */
	public static final String CHANNEL_SWITCH_ON = "0";
	/* 关闭通道 */
	public static final String CHANNEL_SWITCH_OFF = "1";

	public static final String NOTICE_JH_KEY = "be46c09799a7d7ffc80701b54de5b516";
	public static final String NAMEAUTH_JH_KEY = "6902cff2c994e218334da2245638e271";
	public static final String BANKAUTH_JH_KEY = "b1874913d1441bcffdbe0514fefc827f";
	public static final String BANK_TAG_JH_KEY = "758e3556a2ae21d12ca2ccb22ea28446";
	public static final String ASCRIPTION_JH_KEY = "96555ba776726a68941e02b8d588bd41";

	// 系统管理员
	public static final Long ROLE_ID_01 = 1L;
	public static final Long ROLE_ID_05 = 5L;
	// 台卡代理
	public static final Long ROLE_ID_06 = 6L;

	public static final String BIZ_TYPE_01 = "TRADE";
	public static final String BIZ_TYPE_02 = "WITHDRAW_RATE";
	public static final String BIZ_TYPE_03 = "WITHDRAW_SIGLE";

	public static final Long BRAND_ID_407 = 407L;

	public static final String WEIXIN_PAY = "weixin";
	public static final String ALI_PAY = "alipay";
}
